/*
 * Created by JFormDesigner on Wed Aug 08 22:26:07 CEST 2007
 */

package info.rflow.preferences;

import javax.swing.*;
import java.awt.*;


/**
 * @author Holger Brandl
 */
public class AdvancedSettings extends AbstractSettingsPanel {

    public static final String AUTO_DISCOVER_CARDFILES = "advncd.autodiscover";
    public static final Boolean AUTO_DISCOVER_CARDFILES_DEFAULT = false;


    public AdvancedSettings() {
        initComponents();
    }


    void resetPanelSettings() {
//        Utils.getPrefs().remove(AUTO_DISCOVER_CARDFILES);

        loadDefaults();
    }


    void applySettingsChanges() {
//        Utils.getPrefs().putBoolean(AUTO_DISCOVER_CARDFILES, autoDiscoverCheckbox.isSelected());
    }


    protected void loadDefaults() {
//        autoDiscoverCheckbox.setSelected(Utils.getPrefs().getBoolean(AUTO_DISCOVER_CARDFILES, AUTO_DISCOVER_CARDFILES_DEFAULT));
    }


    private void initComponents() {
        // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
        // Generated using JFormDesigner non-commercial license
        advndLtmStatsCheckbox = new JCheckBox();

        //======== this ========
        setLayout(new GridBagLayout());
        ((GridBagLayout) getLayout()).columnWidths = new int[]{0, 0};
        ((GridBagLayout) getLayout()).rowHeights = new int[]{0, 0, 0};
        ((GridBagLayout) getLayout()).columnWeights = new double[]{1.0, 1.0E-4};
        ((GridBagLayout) getLayout()).rowWeights = new double[]{0.0, 1.0, 1.0E-4};

        //---- advndLtmStatsCheckbox ----
        advndLtmStatsCheckbox.setText("Show advanced LTM-statistics");
        // JFormDesigner - End of component initialization  //GEN-END:initComponents
        loadDefaults();
    }


    // JFormDesigner - Variables declaration - DO NOT MODIFY  //GEN-BEGIN:variables
    // Generated using JFormDesigner non-commercial license
    private JCheckBox advndLtmStatsCheckbox;
    // JFormDesigner - End of variables declaration  //GEN-END:variables
}
